﻿using SelfManagement.Database.POCO;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace SelfManagement.Web.Models.ViewModels.DailyModels
{
    public class DailyViewModel: BaseEditViewModel
    {

        [Display(Name = "计划简述")]
        public string TaskName { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        [Display(Name = "日期")]
        public DateTime Date { get; set; }
        
        /// <summary>
        /// 表现如何
        /// </summary>
        [Display(Name = "(总结)表现/进步/快乐的事情")]
        public string Performance { get; set; }

        /// <summary>
        /// 任务列表
        /// </summary>
        public ICollection<DailyTask> Tasks { get; set; } = new HashSet<DailyTask>();

        /// <summary>
        /// 任务json
        /// </summary>
        [Display(Name = "任务描述")]
        public string TasksJson { get; set; }

        /// <summary>
        /// 任务完成情况
        /// </summary>
        [Display(Name = "任务完成情况")]
        public TaskStatus Status { get; set; }

        [Display(Name = "标记为完成")]
        public bool IsCompledted { get; set; }
    }
}